<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="common/form :: head"></head>
	<body class="mainbody">
		<form method="POST" th:object="${obj}">
			<div th:replace="common/form :: location('点赞管理',*{id} gt 0 ?'修改点赞信息':'新增点赞')"></div>
			<div id="floatHead" class="content-tab-wrap">
			  <div class="content-tab">
			    <div class="content-tab-ul-wrap">
			      <ul>
			        <li><a href="javascript:;">点赞信息</a></li>
			      </ul>
			    </div>
			  </div>
			</div>
			<div class="tab-content">
				<dl>
					<dt>图文信息</dt>
				    <dd>
				    	<span class="rule-multi-porp">
				    		<th:block th:each="share,shareStat:${@shareService.getAllShares()}">
				    		 	<input type="checkbox" th:name="shareId" th:value="${share.id}" th:if="${obj.share  == null}" />
								<input type="checkbox" th:name="shareId" th:value="${share.id}" th:if="${obj.share != null}" th:checked="${obj.share.id} == ${share.id}"/>
								<label th:for="'share['+${shareStat.count-1}+'].id'" th:text="${share.describe1}"></label>
				    		</th:block>
				    	</span>
				    </dd>
				</dl>
					
					
				 <dl>
					<dt>状态</dt>
					<dd>
				    <label style="width: 80px;"> 
        				<input th:field="*{state}" type="radio" name="mode" value="已点赞"/>&nbsp;&nbsp;已点赞
    				</label>
    				
    				<label style="width: 80px;"> 
        				<input th:field="*{state}" type="radio" name="mode" value="未点赞"/>&nbsp;&nbsp;未点赞
    				</label>
    				</dd>
				</dl>
				 
				<dl>
					<dt>点赞时间</dt>
				    <dd>
				      <input type="date" th:field="*{time}" class="input normal" data-type="*2-10" />
				      <span class="Validform_checktip">*点赞时间</span>
				    </dd>
				</dl>
				
				<dl>
					<dt>点赞者</dt>
				    <dd>
				    	<span class="rule-multi-porp">
				    		<th:block th:each="employee,employeeStat:${@employeeService.getAllEmployees()}">
				    			<input type="checkbox" th:name="employeeId" th:value="${employee.id}" th:if="${obj.employee  == null}" />
								<input type="checkbox" th:name="employeeId" th:value="${employee.id}" th:if="${obj.employee != null}" th:checked="${obj.employee.id} == ${employee.id}"/>
								<label th:for="'employee['+${employeeStat.count-1}+'].id'" th:text="${employee.name}"></label>
				    		</th:block>
				    	</span>
				    </dd>
				</dl>
			
			
			</div>
			<div th:replace="common/form :: footer"></div>
		</form>
		<script type="text/javascript" th:replace="common/form :: formscript"></script>
	</body>
</html>